/*
 * @Author: your name
 * @Date: 2021-07-07 16:18:47
 * @LastEditTime: 2021-08-18 13:35:25
 * @Description:
 */
import { createApp } from 'vue'
import 'normalize.css/normalize.css'
import './styles/index.scss'

import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'

import App from './App.vue'
import router from './router/index'
import store from './store'
import SvgIcon from '@/components/SvgIcon/index.vue'

// 在挂载路由之前，先进行异步路由处理
store.dispatch('permission/getPermissonRoutes')

const app = createApp(App)

app.use(store)
app.use(router)
app.use(ElementPlus)
app.component('svg-icon', SvgIcon)

app.mount('#app')
